package com.dgut.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//这个类的所有方法返回的数据直接写个浏览器（如果是对象是转为jason数据）
@ResponseBody
@RestController
public class HelloController {
@RequestMapping("/hello")
    public String hello(){
    return "hello world!!!!";
}
}
